
<html>
<head>
	<link rel="stylesheet" type="text/css" href="tablestyle.css">
</head>
<body>

<?php
	//echo '';

	$alert = "Fri Mar 28 15:00:15 2014 ADHOCCONFLICT 0 78:54:2E:5A:75:F6 8C:3A:E3:44:11:64 78:54:2E:5A:75:F6 00:00:00:00:00:00 Network BSSID 78:54:2E:5A:75:F6 advertised as AP network, now advertising as Ad-Hoc IBSS, which may indicate AP spoofing/impersonation";
	
	$split_alert = preg_split('/\s/',$alert);
	
	/*echo '<pre>';
	print_r($split_alert);
	echo '</pre>';*/
	
	$date = $split_alert[0] .' '. $split_alert[1] .' '. $split_alert[2] .' '. $split_alert[3] .' '. $split_alert[4];
	$type = $split_alert[5];
	$true = $split_alert[6];
	$bssidmac = $split_alert[7];
	$srcmac = $split_alert[8];
	$desmac = $split_alert[9];
	$othersmac = $split_alert[10];
	$note = $split_alert[14] . $split_alert[15] . $split_alert[16] . $split_alert[17] . $split_alert[18] 
					. $split_alert[19] . $split_alert[20] . $split_alert[21] . $split_alert[22] . $split_alert[23]
					. $split_alert[24] . $split_alert[25] . $split_alert[26] . $split_alert[27];
	
	echo '<table style="border:1 solid black;">';
	echo '<tr>';
	echo '<th>DATE</th>';
	echo '<th>TYPE</th>';
	echo '<th>TRUE</th>';
	echo '<th>BISSID MAC</th>';
	echo '<th>SOURCE MAC</th>';
	echo '<th>DESTINATE MAC</th>';
	echo '<th>OTHERS MAC</th>';
	echo '<th>NOTE</th>';
	echo '</tr>';
	echo '<tr>';
	echo '<td>'.$date.'</td>';
	echo '<td>'.$type.'</td>';
	echo '<td>'.$true.'</td>';
	echo '<td>'.$bssidmac.'</td>';
	echo '<td>'.$srcmac.'</td>';
	echo '<td>'.$desmac.'</td>';
	echo '<td>'.$othersmac.'</td>';
	echo '<td>'.$note.'</td>';
	echo '</tr>';
	echo '</table>';
?>

</body>
</html>